logs = '''
111.30.144.7 "POST /mock/login/?t=GET HTTP/1.1" 200 
111.30.144.7 "Get /mock/users/?t=POST HTTP/1.1" 200 
111.13.100.92 "Post /mock/login/ HTTP/1.1" 200 
223.88.60.88 "GET /mock/users/?t=POST HTTP/1.1" 200 
111.30.144.7 "GET /mock/users/ HTTP/1.1" 200 
'''
linelogs = logs.strip().upper().splitlines()
counter = [] #定义一个列表用来收集方法，统计数量
method = set() #定义一个集合用来收集logs中有多少种方法，目的是去重
for log in linelogs:
    s = log.split()[1].strip('\"')
    counter.append(s)
    method.add(s)
for meth in method:
    print(meth,counter.count(meth)) #用列表方法count统计方法出现的次数

